package com.mlody.chapter3;

/**
 * Created by tmlod_000 on 2014-11-30.
 */
public class StarbuzzCoffe {
    public static void main(String...args){
        Beverage expresso=new Espresso();
        System.out.println("Expresso cost:"+expresso.cost());
        expresso=new Mocha(expresso);
        System.out.println("Expresso with mocha cost:"+expresso.cost());
        expresso=new Mocha(expresso);
        System.out.println("Expresso with mocha cost:"+expresso.cost());
    }
}
